package aom.example.security.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/6/11 14:39
 * @since JDK 1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_menu")
public class SysMenuEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限ID
     */
    @TableId(type = IdType.AUTO)
    private Long menuId;
    /**
     * 权限名称
     */
    private String name;
    /**
     * 权限标识
     */
    private String permission;

    /**
     * 菜单地址
     */
    @TableField("menu_url")
    private String menuUrl;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createDate;

    /**
     * 图标
     */
    @TableField("icon")
    private String icon;

    /**
     *菜单
     */
    @TableField("id_menu")
    private String menu;

    /**
     * 菜单目录
     */
    @TableField("id_menu_dictory")
    private String dictory;
}
